function auth() {
    var username = $("#username").val();
    if (username == '' || username == null){
        alert("内容不允许为空，这样不容易测试shiro权限验证问题");
        return
    }
    $.ajax({
        type: 'get',
        url: "/auth",
        data:{
            "username":username
        },
        dataType:"json",
        success:function (data) {
            alert(data.message);
        },
    })
}